<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>注册界面</title>

    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/js/bootstrap.min.js"></script>
    <!-- 移动设备优先 -->
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">


    <style type="text/css">
        body {
            /*background-image: url("imge/background.jpeg");*/
        }
        .middle {
            margin-top: 110px;
            margin-bottom: 110px;
            padding: 100px 50px 50px 50px;
            background-color: white;
            border-radius: 15px;
            box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.1);

        }
        .login {
            margin-left: 20px;
        }
        .font2 {
            font-size: 0.6em;
        }
        .btn {
            border-radius: 28px;
        }

    </style>

    <script type="text/javascript">

    </script>
</head>
<body>
<div class="container">
    <div class="middle mx-auto h-75 w-75">
        <div class="row">
            <div class="col col-12 col-md-6">
                <img class="rounded img-fluid" th:src="@{/images/logo.png}" src="loggo.png" alt="图标">
            </div>
            <div class="col col-12 col-md-6">
                <div class="login">
                    <h5 class="font-weight-bold">注 册</h5>
                    <p class="font-weight-light font2">校园二手交易平台</p>
                    <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
                    <form method="post"  th:action="@{/register}">
                        <div class="form-group">
                            <input type="text" name="username" class="form-control" id="username" placeholder="username">
                        </div>

                        <div class="form-group">
                            <input type="password" name="password" class="form-control" id="password" placeholder="Password">
                        </div>

                        <div class="form-group">
                            <input type="text" name="email" class="form-control" placeholder="E-Mail">
                        </div>

                        <br>
                        <button type="submit" class="btn btn-primary btn-block w-75 mx-auto">注 册</button>
                        <a href="login.html" th:href="@{/toLogin}" style="float: right">已 有 账 号</a>
                    </form>

                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>